<div xmlns:th="http://www.thymeleaf.org" th:fragment="left">
    <ul class="layui-nav layui-nav-tree layui-nav-side blog-nav-left layui-hide" lay-filter="nav">
        <li class="layui-nav-item">
            <a href="/"><i class="fa fa-home fa-fw"></i>&nbsp;网站首页</a>
        </li>
        <li th:unless="${session.user==null}" class="layui-nav-item ">
            <a th:href="@{/article/list(user=${session.user.id})}"><i class="fa fa-file-text fa-fw"></i>&nbsp;文章专栏</a>
        </li>
        <li th:unless="${session.user==null}" class="layui-nav-item">
            <a href="/article/add"><i class="fa fa-pencil fa-fw"></i>&nbsp;写文章</a>
        </li>
    </ul>
</div>